8d935acc05d71ab73c9b13fd5871cb9d21b1629d,src/org/graphstream/ui/layout/springbox/BarnesHutLayout.java,BarnesHutLayout,randomZInsideBounds,#,331
Before Change
public double randomZInsideBounds() {
org.miv.pherd.geom.Point3 lo = nodes.getNTree().getLowestPoint();
org.miv.pherd.geom.Point3 hi = nodes.getNTree().getHighestPoint();
return lo.z + ((hi.z - lo.z)*Math.random());
}
public Point3 getCenterPoint() {
After Change
}
public double randomZInsideBounds() {
org.miv.pherd.geom.Point3 c = ((GraphCellData)nodes.getNTree().getRootCell().getData()).center;
return c.z + (random.nextDouble()*2-1);
//org.miv.pherd.geom.Point3 lo = nodes.getNTree().getLowestPoint();
//org.miv.pherd.geom.Point3 hi = nodes.getNTree().getHighestPoint();